package com.whfc.quality.dto;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * @author : qzexing
 * @version : 1.0
 * @date : 2020-07-30 15:51
 */
@Data
public class QualityIssueTypeDTO implements Serializable {

    /**
     * 问题类型ID
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long issueTypeId;
    /**
     * 父节点ID
     */
    @JsonSerialize(using =ToStringSerializer.class)
    private Long pid;
    /**
     * 部位编码
     */
    private String code;
    /**
     * 问题类型名称
     */
    private String name;
    /**
     * 子节点
     */
    private List<QualityIssueTypeDTO> children;
    /**
     * 问题明细
     */
    private List<QualityIssueDTO> issues;

}
